package com.ccut.xunfeiSpringboot.service;

import com.ccut.xunfeiSpringboot.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminService {

    void add(Admin admin);
    void deleteById(String username);
    void update(Admin admin);
    List<Admin> selectAll();
    Admin selectById(Integer id);
    PageInfo<Admin> selectPage(Integer pageNum, Integer pageSize);
    void register(Admin admin);
    Admin login(String username, String password);

    boolean existsByUsername(String username);
}